package com.it.d4_abstract;

// 抽象类
public abstract class A {
    private String name;

    public static String schoolName;

    // 抽象方法：必须用abstract修饰，只有签名方法，一定不能有方法体
    public abstract void run();


    public A() {
    }

    public A(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getSchoolName() {
        return schoolName;
    }

    public static void setSchoolName(String schoolName) {
        A.schoolName = schoolName;
    }
}
